package main;

import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import org.softmed.rest.admin.file.FileManagerProxy;
import org.softmed.rest.admin.httpMethods.HTTPMethodEditor;
import org.softmed.rest.admin.mediaType.MediaTypeChooser;
import org.softmed.rest.admin.mediaType.MediaTypeEditor;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		try {
//		    UIManager.setLookAndFeel(
//		      "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
		    
//		    "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");

			 UIManager.setLookAndFeel(
			            UIManager.getSystemLookAndFeelClassName());
			
//			 UIManager.setLookAndFeel(
//			            UIManager.getCrossPlatformLookAndFeelClassName());


		  } catch (UnsupportedLookAndFeelException e) {
//		    ...
		  } catch (ClassNotFoundException e) {
//		    ...
		  } catch (InstantiationException e) {
//		    ...
		  } catch (IllegalAccessException e) {
//		    ...
		  }
		
		FileManagerProxy fileManagerProxy = new FileManagerProxy();
		
		ConfigurationManagerProxy configurationManagerProxy = new ConfigurationManagerProxy(fileManagerProxy);
		configurationManagerProxy.getConfigurationManager().setConfigFilePath("RESTConfiguration.xml");
		
		
		
		RESTEditor editor = new RESTEditor();
		editor.setConfigurationManager(configurationManagerProxy);
		editor.setFileManager(fileManagerProxy);

	}

}
